home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 February
/
PCWorld_2007-02_cd.bin
/
v cisle
/
mcvirtual
/
Virtual PC 2004 SP1.exe
/
Virtual PC 2004 SP1
/
Microsoft Virtual PC 2004 MSDN.msi
/
DOSAdditions
/
DosAdd.bat
Wrap
DOS Batch File
|
2004-03-26
|
3KB
|
96 lines
@echo off
cls
if "%DOSVMADD13%" == "INSTALLED" goto additionsAlreadyInstalled
echo.
echo ***************************************************************************
echo **** DOS Virtual Machine Additions Installer ****
echo ***************************************************************************
echo.
echo DOS Virtual Machine Additions is about to be installed to C:\VMADD
echo.
echo.
choice Do you want to install DOS Virtual Machine Additions? /c:yn
if errorlevel 2 goto abort
cls
md c:\vmadd > nul
cls
copy C:\autoexec.bat+A:\srcfiles\auto.1+A:\srcfiles\auto.2 c:\autoexec.new /y > nul
copy c:\autoexec.new c:\autoexec.bat /y > nul
if exist C:\VMADD\VMADD386.SYS goto next
copy a:\srcfiles\config.1+c:\config.sys c:\config.new /y > nul
copy c:\config.new c:\config.sys /y > nul
:next
copy A:\srcfiles\vmadd386.sys C:\VMADD\vmadd386.sys /y > nul
if exist C:\VMADD\CDROM.SYS goto next1
copy c:\config.sys+a:\srcfiles\config.2+a:\srcfiles\config.3 c:\config.new /y > nul
copy c:\config.new c:\config.sys /y > nul
:next1
copy a:\srcfiles\cdrom.sys c:\vmadd\cdrom.sys /y > nul
if exist C:\VMADD\FSHARE.EXE goto next2
copy c:\config.sys+a:\srcfiles\config.4 c:\config.new /y > nul
copy c:\config.new c:\config.sys /y > nul
copy c:\autoexec.bat+a:\srcfiles\auto.3 c:\autoexec.new /y > nul
copy c:\autoexec.new C:\autoexec.bat /y > nul
:next2
copy a:\srcfiles\fshare.exe c:\vmadd /y > nul
if not exist C:\DOS\MSCDEX.EXE goto next3
copy c:\autoexec.bat+a:\srcfiles\auto.6 c:\autoexec.new /y > nul
copy c:\autoexec.new c:\autoexec.bat /y > nul
:next3
if exist C:\VMADD\IDLE.COM goto next4
copy c:\autoexec.bat+a:\srcfiles\auto.4 c:\autoexec.new /y > nul
copy c:\autoexec.new c:\autoexec.bat /y > nul
:next4
copy a:\srcfiles\idle.com c:\vmadd /y > nul
if exist C:\VMADD\mouse.com goto next5
copy c:\autoexec.bat+a:\srcfiles\auto.5 c:\autoexec.new /y > nul
copy c:\autoexec.new c:\autoexec.bat /y > nul
:next5
copy a:\srcfiles\mouse.com c:\vmadd /y > nul
del c:\autoexec.new
del c:\config.new
cls
echo.
echo ***************************************************************************
echo **** DOS Virtual Machine Additions Installer ****
echo ***************************************************************************
echo.
echo You have successfully installed DOS Virtual Machine Additions. Please eject the
echo DOS Virtual Machine Additions virtual floppy disk and restart the virtual
echo machine.
echo.
echo.
echo.
goto end
:additionsAlreadyInstalled
echo.
echo ***************************************************************************
echo **** DOS Virtual Machine Additions Installer ****
echo ***************************************************************************
echo.
echo DOS Virtual Machine Additions is already installed on this virtual machine.
echo.
echo.
goto end
:abort
echo.
echo ...
echo.
echo DOS Virtual Machine Additions has not been installed.
:end
echo on